package com.web.settlement.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
public class Settlement {

	Integer settlementNumber;

	Integer refNumber;

	String txType;

	String excde;

	private String buyCurrency;

	private String sellCurrency;

	private BigDecimal buyAmount;

	private BigDecimal sellAmount;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
	LocalDate settlementDate;
}
